package com.example.ruiji.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.ruiji.common.Result;
import com.example.ruiji.entity.Employee;

public interface EmployeeService {
    Result<Employee> login(Employee employee);

    Result<String> logout();

    Result<String> addEmployee(Employee employee);

    Result<Page<Employee>> Page(Integer page, Integer pageSize, String name);

    Result<String> updateEmployee(Employee employee);

    Result<Employee> getById(Long id);
}
